package cn.edu.hqu.cst.android.wzc.myapplication;
import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class ExteriorClick implements View.OnClickListener {
    private TextView tv1;
    public ExteriorClick(TextView tv1)
    {
        this.tv1 = tv1;
    }
    @Override
    public void onClick(View v) {
        //点击后设置文本框显示的文字
        tv1.setText("外部类作为监听器");
    }
}
